
const path = require('path');
module.exports = {
  entry: { app: path.join(__dirname, './app.js')},
  output: {
    path: path.resolve(__dirname, 'dist'),
    publicPath: '/dist/',
    filename: 'build.js'
  },
  /*
  devServer: {
    contentBase: path.join(__dirname, './'),
    compress: true,
    port: 8081,
    hot: true
  },*/
  resolve: {
    alias: {
      vue: 'vue/dist/vue.js'
    }
  },
  module: {
    rules: [
      {
        test: /\.(js)$/,
        exclude: /node_modules/,
        loader: 'babel-loader'
      }
    ]
  }
}

